package hys.wssoc.modules.info.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import hys.wssoc.common.utils.PageUtils;
import hys.wssoc.common.utils.Query;
import hys.wssoc.modules.info.dao.IndustryDesDao;
import hys.wssoc.modules.info.entity.IndustryDesEntity;
import hys.wssoc.modules.info.service.IndustryDesService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("industryDesService")
public class IndustryDesServiceImpl extends ServiceImpl<IndustryDesDao, IndustryDesEntity> implements IndustryDesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<IndustryDesEntity> page = this.page(
                new Query<IndustryDesEntity>().getPage(params),
                new QueryWrapper<IndustryDesEntity>()
        );

        return new PageUtils(page);
    }

}